import { ref,onMounted } from 'vue'
import appInit from '@/hook/appInit'
import test from '@/hook/test'
export default {
    name:'errorPage',
    components:{},
    setup() {
        let progress = ref(0)
        let desc = ref('正在收集信息...')
        let timer = null
        appInit()
        test()
        onMounted(() => {
            timer = setInterval(() => {
                progress.value+=10
                if(progress.value===100){
                    desc.value='完成'
                    clearInterval(timer)
                }
                
            }, 1000);
            console.log('我是组件mount');
        })
        test()
        return {
            progress,
            desc
        }
    }
}